package algorithm.classification.functionsandloss;


public class HingeLoss implements Loss
{
	public final double getDerivatedValue(double x) {
		if (x>=1) return(0.0);
		return(-1);

	}
	public final double getValue(double x) 
	{
		if (x>=1) return(0.0);
		return(-(x-1));
	}

}
